package cn.edu.ctbu.dp01.dao;

import cn.edu.ctbu.dp01.entity.teacher;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface teacherRepository extends CrudRepository<teacher, Integer> {
    // 默认继承的 CRUD 方法已经足够满足需求
    List<teacher> findByNameContaining(String name);
}
